/**
 * 
 */
package com.tc.dispatch.web.util;

import java.util.Comparator;

import com.tc.dispatch.gsalgorithm.spec.compare;
import com.tc.dispatch.rwservice.model.ERPWarehouse;

/**
 * @author cajeep
 *
 */
public class YZComparator implements Comparator {

	public int compare(Object a, Object b) {
		ERPWarehouse wh1=(ERPWarehouse)a;
		ERPWarehouse wh2=(ERPWarehouse)b; 
		return compare.compareSpec(wh1.getSpec(), wh2.getSpec());
	}
}
